import { Injectable } from '@angular/core';
import { HttpHeaders, HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';



export enum RequestMethod {
  Get = 'GET',
  Head = 'HEAD',
  Post = 'POST',
  Put = 'PUT',
  Delete = 'DELETE',
  Options = 'OPTIONS',
  Patch = 'PATCH'
}




@Injectable({
  providedIn: 'root'
})
export class ApiService {



  headers=new HttpHeaders({
    'Accept':'application/json',
    'Content-Type':'application/json'
  });

  constructor(private http:HttpClient) { }


// get(path:string,args?:any):Observable<any>{
//  const options={
//    headers:this.headers,
//    withCredentials:true
//  };
//  if(args){
//    //options['params']=seri(args);
//  }

// }





}
